<!-- this file is loaded into the dialog widget -->
<div id="___dataset_form" style="width:400px;height:360px" />

<script type="text/javascript">
    dojo.require("rptp.rpt");
    dojo.require("lotex.Form");
    //alert("Dialog of dataset");
    lotex.Formbind({
        definitionUri: rptp.rpt.getDatasetFormURL(),
        //buttonStyle: "none",
        load: function(data) {
            d(data);
            dojo.byId("___dataset_form").innerHTML = data;
        },
        submit: function() {
            d("submit...");
            //dojo.byId("debug.output").innerHTML = "submit...";
        },
        submitEnd: function(data) {
            d(data);
            //dojo.byId("debug.output").innerHTML = data;
        },
        error: function(t, e) {
            //dojo.byId("debug.output").innerHTML = e.message;
        }
    });
</script>